package com.practice.aiGenericsReflection009.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yangdejun
 * @date 2020/08/03
 **/
public class GenericCycle {
    public static void main(String[] args) {
        List<Integer> intList = new ArrayList<>(5);
        List<String> strList = new ArrayList<>(5);

        Class<? extends List> aClass = intList.getClass();
        Class<? extends List> aClass1 = strList.getClass();

        System.out.println(aClass);
        System.out.println(aClass1);
        System.out.println(aClass.equals(aClass1));
        System.out.println(aClass == aClass1);
    }
}
